package com.ws.rs;

import javax.annotation.Resource;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.stereotype.Component;

import com.ws.model.ExamResult;
import com.ws.service.ExamResultService;

@Path("/examresult")
@Component("examResultRService")
public class ExamResultRService {
	//private static final Logger LOGGER = Logger.getLogger(ExamResultRService.class);
	@Resource
	private ExamResultService examResultService;
	
	@POST
	@Consumes(MediaType.APPLICATION_JSON)
	@Produces(MediaType.TEXT_PLAIN)
	@Path("/post")
	public boolean insertExamResult(ExamResult examResult){
		return examResultService.insertExamResult(examResult);
	}
}
